package com.example.patient.jpa;

import com.example.common.entity.Collection;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @Author wxy
 * @Date 2021/1/19 16:53
 * @Version 1.0
 */
public interface CollectionRepository extends JpaRepository<Collection, String> {

    Long countByDcIdAndClientId(Long dcId, Long clientId);

    Collection findByDcIdAndClientId(Long dcId, Long clientId);
}
